package com.ruoyi.ticket.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车票管理对象 ticket
 * 
 * @author qingshi
 * @date 2021-06-05
 */
public class Ticket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车票id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String name;

    /** 所属订单ID */
    @Excel(name = "所属订单ID")
    private Long orderId;

    /** 所属车次id */
    @Excel(name = "所属车次id")
    private Long departureId;

    /** 发车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date departureDate;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 出发地 */
    @Excel(name = "出发地")
    private String departure;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 员工/普通票 */
    @Excel(name = "员工/普通票")
    private String identity;

    /** 是否核销 */
    @Excel(name = "是否核销")
    private Integer checked;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setDepartureId(Long departureId) 
    {
        this.departureId = departureId;
    }

    public Long getDepartureId() 
    {
        return departureId;
    }
    public void setDepartureDate(Date departureDate) 
    {
        this.departureDate = departureDate;
    }

    public Date getDepartureDate() 
    {
        return departureDate;
    }
    public void setDestination(String destination) 
    {
        this.destination = destination;
    }

    public String getDestination() 
    {
        return destination;
    }
    public void setDeparture(String departure) 
    {
        this.departure = departure;
    }

    public String getDeparture() 
    {
        return departure;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setIdentity(String identity) 
    {
        this.identity = identity;
    }

    public String getIdentity() 
    {
        return identity;
    }
    public void setChecked(Integer checked) 
    {
        this.checked = checked;
    }

    public Integer getChecked() 
    {
        return checked;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("orderId", getOrderId())
            .append("departureId", getDepartureId())
            .append("departureDate", getDepartureDate())
            .append("destination", getDestination())
            .append("departure", getDeparture())
            .append("price", getPrice())
            .append("identity", getIdentity())
            .append("checked", getChecked())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
